#!/bin/bash
dist_prefix=/usr/local/
dist_location=$dist_prefix/CloudFiler
echo Installing in $dist_location
pushd $dist_prefix
rm -rf CloudFiler
mkdir CloudFiler
popd
cp -r * $dist_location
cp cloudfiler.desktop ~/.local/share/applications/
if [ ! -f ~/CloudFiler.ini ]; then
    cp CloudFiler.ini ~/
    chmod a+rw ~/CloudFiler.ini
fi
